New List View Modifiers
Overview of Properties
1. listSectionIndexVisibility
Description
Controls whether the List shows the right-side section index (commonly used for A–Z navigation in contact lists).
Possible values:
"visible""hidden""automatic"(default system behavior)
Example
2. listSectionMargins
Description
Customizes the margins of a section. When set, it fully replaces SwiftUI’s default section margin rules.
Supported Formats
2.1 Single number
Applies the same margin to all edges.
2.2 EdgeSets
Applies the specified edges with the default margin.
2.3 Specific edges with length
Applies a margin of length only to the specified edges.
Equivalent to SwiftUI:
Example
3. sectionIndexLabel
Description
Sets the character or text displayed in the right-side section index for this section. Typically a single letter.
Example
4. sectionActions
Description
Adds custom UI elements such as buttons or menus to the section header’s trailing (accessory) area.
